﻿using System;
using System.Text;
using ProjScan.Submodules.Shader_Analysis.Build;
using ProjScan.Tools;

namespace ProjScan.RecordManager.AssetData
{
	// Token: 0x020002A8 RID: 680
	internal class ShaderBuildInfoAssetData : AssetDataBase
	{
		// Token: 0x060011B8 RID: 4536 RVA: 0x0005351C File Offset: 0x0005171C
		public ShaderBuildInfoAssetData(ShaderBuildInfo shaderBuildInfo)
		{
			this.simpleName = shaderBuildInfo.simpleName;
			this.location = (shaderBuildInfo.isInternal ? "Built-in" : shaderBuildInfo.path.Replace(".shader", ""));
			this.variantNumber = shaderBuildInfo.VariantNum;
			this.keywordCount = ((shaderBuildInfo.keywords == null) ? 0 : shaderBuildInfo.keywords.Count);
			this.filePath = (shaderBuildInfo.isInternal ? ("Built-in/" + shaderBuildInfo.name) : shaderBuildInfo.path);
		}

		// Token: 0x060011B9 RID: 4537 RVA: 0x000535B8 File Offset: 0x000517B8
		public override string GetCSVHeader()
		{
			return "Name, Path, VariantNum, KwNum";
		}

		// Token: 0x060011BA RID: 4538 RVA: 0x000535D0 File Offset: 0x000517D0
		public override string GetInfo()
		{
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.Append(ToolsHelper.QuoteString(this.simpleName));
			stringBuilder.Append(",");
			stringBuilder.Append(this.location);
			stringBuilder.Append(",");
			stringBuilder.Append(this.variantNumber);
			stringBuilder.Append(",");
			stringBuilder.Append(this.keywordCount);
			return stringBuilder.ToString();
		}

		// Token: 0x060011BB RID: 4539 RVA: 0x00002A20 File Offset: 0x00000C20
		public override void Reset()
		{
		}

		// Token: 0x060011BC RID: 4540 RVA: 0x0005364C File Offset: 0x0005184C
		public override string GetAssetPath()
		{
			return this.filePath;
		}

		// Token: 0x060011BD RID: 4541 RVA: 0x0005364C File Offset: 0x0005184C
		public override string GetFileAssetPath()
		{
			return this.filePath;
		}

		// Token: 0x04000A70 RID: 2672
		public string simpleName;

		// Token: 0x04000A71 RID: 2673
		public string location;

		// Token: 0x04000A72 RID: 2674
		public int variantNumber;

		// Token: 0x04000A73 RID: 2675
		public int keywordCount;

		// Token: 0x04000A74 RID: 2676
		private string filePath;
	}
}
